/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bean;

import business.TourBusiness;
import java.util.List;
import model.PackageTour;
import model.PackageTourDetails;


/**
 *
 * @author khanhanh
 */
public class PackageTourBean {
    private TourBusiness tourBiz;
    private List<PackageTour> lAllPackageTour;
    private PackageTourDetails ptDetails;
    private int numberPeople = 1;
    private PackageTour ptour;

    public PackageTourDetails getPtDetails() {
        return ptDetails;
    }

    public List<PackageTour> getlAllPackageTour() {
        return lAllPackageTour;
    }

    public String actionGetTourDetails(int tourID) {
        ptDetails = tourBiz.getPackageTourDetailsByID(tourID);
        return "packagetourdetail.xhtml";
    }

        public int getNumberPeople() {
        return numberPeople;
    }

    public void setNumberPeople(int numberPeople) {
        this.numberPeople = numberPeople;
    }

        public PackageTour getPtour() {
        return ptour;
    }

    public void setPtour(PackageTour ptour) {
        this.ptour = ptour;
    }
    /** Creates a new instance of PackageTourBean */
    public PackageTourBean() {
        tourBiz = new TourBusiness();
        lAllPackageTour = tourBiz.getAllPackageTour();
    }

    public String actionOrderTour(int tourID) {
        return "ordertours.xhtml";
    }

    public String actionUpdateOrder() {
        return "ordertour.xhtml";
    }
}
